package com.huaxin.entity;

public class ProductInfo {
    private Integer id;

    private String code;

    private String name;

    private String type;

    private String brand;

    private String pic;

    private Integer num;

    private Float price;

    private Float sale;
//1.执门，2.抢购，3.普通
    private Integer status;

    private String intro;

    public ProductInfo(Integer id, String code, String name, String type, String brand, String pic, Integer num, Float price, Float sale, Integer status, String intro) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.type = type;
        this.brand = brand;
        this.pic = pic;
        this.num = num;
//        原价
        this.price = price;
//        折扣价
        this.sale = sale;
//        商品的状态1.热门,2.抢购,3.普通商品
        this.status = status;
//        商器详情
        this.intro = intro;
    }

    public ProductInfo() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand == null ? null : brand.trim();
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic == null ? null : pic.trim();
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Float getSale() {
        return sale;
    }

    public void setSale(Float sale) {
        this.sale = sale;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro == null ? null : intro.trim();
    }
}